#
# Be sure to run `pod lib lint RNFoundationCategory.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'RNFoundationCategory'
  s.version          = '0.1.0'
  s.summary          = 'RNFoundationCategory for iOS.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = 'This is RNFoundationCategory for iOS.'

  s.homepage         = 'https://git.oschina.net/johnnyliu/FoundationCategory'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'liuhuan' => 'liuhuan212321@sogou-inc.com' }
  s.source           = { :git => 'https://git.oschina.net/johnnyliu/FoundationCategory.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '7.0'

  s.source_files = 'RNFoundationCategory/Classes/RNFoundationCategory.h'
  s.public_header_files = 'RNFoundationCategory/Classes/RNFoundationCategory.h'

  s.subspec 'NSArray' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSArray/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSArray/*.h'
  end

  s.subspec 'NSData' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSData/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSData/*.h'
  end

  s.subspec 'NSDate' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSDate/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSDate/*.h'
    ss.resource = 'RNFoundationCategory/Classes/NSDate/*.bundle'
  end

  s.subspec 'NSDateFormatter' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSDateFormatter/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSDateFormatter/*.h'
  end

  s.subspec 'NSDictionary' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSDictionary/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSDictionary/*.h'
  end

  s.subspec 'NSException' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSException/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSException/*.h'
  end

  s.subspec 'NSFileManager' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSFileManager/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSFileManager/*.h'
  end

  s.subspec 'NSHTTPCookieStorage' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSHTTPCookieStorage/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSHTTPCookieStorage/*.h'
  end

  s.subspec 'NSIndexPath' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSIndexPath/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSIndexPath/*.h'
  end

  s.subspec 'NSNumber' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSNumber/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSNumber/*.h'
  end

  s.subspec 'NSObject' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSObject/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSObject/*.h'
  end

  s.subspec 'NSSet' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSSet/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSSet/*.h'
  end

  s.subspec 'NSString' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSString/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSString/*.h'
    ss.dependency 'RNFoundationCategory/NSData'
  end

  s.subspec 'NSTimer' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSTimer/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSTimer/*.h'
  end

  s.subspec 'NSURL' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSURL/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSURL/*.h'
  end

  s.subspec 'NSUserDefaults' do |ss|
    ss.source_files = 'RNFoundationCategory/Classes/NSUserDefaults/*.{h,m}'
    ss.public_header_files = 'RNFoundationCategory/Classes/NSUserDefaults/*.h'
  end

  # s.resource_bundles = {
  #   'RNFoundationCategory' => ['RNFoundationCategory/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
